package maze.model;

public class Pair
{
	public int x;
	public int y;

	public Pair()
	{
	}

	public Pair(int x, int y)
	{
		this.x = x;
		this.y = y;
	}

	@Override
	public boolean equals(Object obj)
	{
		if (obj == null || !(obj instanceof Pair))
			return false;

		Pair that = (Pair) obj;

		return x == that.x && y == that.y;
	}

	@Override
	public String toString()
	{
		return "x=" + x + ",y=" + y;
	}
}
